package org.jeecg.modules.basic.guest.service;

import org.jeecg.modules.basic.guest.entity.LwgyInoutGuest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @Description: 外来人员管理
 * @Author: jeecg-boot
 * @Date:   2021-03-17
 * @Version: V1.0
 */
public interface ILwgyInoutGuestService extends IService<LwgyInoutGuest> {
    //将外来人员信息上传商汤
    String saveGuestToPublic(LwgyInoutGuest lwgyInoutGuest) throws Exception;
    //将外来人员信息上传商汤
    String saveGuestToPrivate(LwgyInoutGuest lwgyInoutGuest) throws Exception;
    //根据访客ID生成二维码——商汤
    String queryQrcodeByIdToPublic(String userId);
    String queryQrcodeByIdToPrivate(String userId);
    //远程开关-商汤
    String deviceOpen();
    //通过身份证号检查系统中是否存在该访客
    boolean checkGuest(String idCard);
    //修改访客状态（定时校验，将过期访客进行标记）
    void changeGuestState();
    //(公有云)根据姓名，手机号，身份证号查询是否存在该用户
    String queryUser(int type,String name,String mobile,String idNumber) throws UnsupportedEncodingException;
    //修改访客
    String updateGuest(LwgyInoutGuest lwgyInoutGuest ) throws Exception;
    List<LwgyInoutGuest> getGuest(String mobile);

}
